Lighthouse Bug Tracker
What Is Lighthouse Bug Tracker?
Lighthouse Bug Tracker is a simple system that enables bug tracking in projects. It makes tracking (and tackling) development issues simple and straightforward.
There are three main aspects of the application:
- BugTracker is the core ColdFusion Component (CFC) that does most of the grunt work. Use this CFC to develop your own bug-tracking application.
- Default Render Mode (there's no nice name for it) is a method of BugTracker that displays a simple user interface for working easily with the bug tracker. It doesn't have true user support but it's enough to get you started.
- Lighthouse is the main application that you typically install in /bugtracker on your server. It has simple authentication, a nice look and feel, and is a complete application using the BugTracker CFC.
BugTracker
The core to Lighthouse is the BugTracker CFC. It contains all methods that enable the bug tracker to work. Projects are configured using an .ini file, which must be found in the same directory as the CFC.
Here's what its syntax looks like:
[default] dataroot=bugtrackerdata datafile=bugdata.wddx bugtypes=Bug,New Feature bugCriticalities=Low,Normal,High bugLoci=Database,Public Site,Administrator notifyOnEdit=ray@camdenfamily.com notifyOnNew=ray@camdenfamily.com notifyOnResolve=ray@camdenfamily.com
The name of the section–in this case, "default"–is the name of the bug tracker project. At minimum, you must have a default section. The entries are described as follows:
| Dataroot | The folder that holds bug tracker data. This folder is created under the folder storing the CFC. |
| Datafile | The name of the file. |
| BugTypes | A list of bug types. Not everything reported in the bug tracker is an actual bug. Some things are feature requests or suggestions. Use this setting to define what kinds of entries you want. |
| BugCriticalities | This defines how critical a bug is. You can set various levels of how important bugs are in your project. |
| BugLoci | This defines the locations, or locus, of bug entries. A project may have many parts to it; list each part here. |
| BugStatus | This defines the possible state the bugs can be in. |
| NotifyOnEdit | A list of people to e-mail when a bug is edited. |
| NotifyOnNew | A list of people to e-mail when a bug is created. |
For additional projects, if you use %default% in your setting, the bug tracker adds the matching values in the default bug tracker. For example, the following sets the value of notifyOnResolve for the test project to the value of the default notifyonResolve setting and adds ray@camdenfamily.com:
[test] notifyOnResolve=%default%,ray@camdenfamily.com
Any setting that is not set will default to the setting in the default tracker.
Default Render Mode
By itself, the BugTracker CFC actually generates a user interface to allow full bug tracking. To enable this feature, place the CFC in a web-accessible directory and call it with the method=render query string.
Although Default Render Mode does not support user logins, you can still set owners when editing a bug.
This application makes use of the Server scope for caching improvements. It creates one structure, called server.bugtracker.
Lighthouse
Lighthouse is the main application that utilizes the BugTracker CFC. It employs simple security measures using a user.cfc file and allows you to assign bugs to particular users. It has a better interface than Default Render Mode and is more appropriate for a large team of developers.
To use this application, open your browser to <your server>/bugtracker. You will need to register before using the application, as well as edit the .ini file to set up any initial projects.
Credits
This project originated from a simple bug tracker designed by Nathan Dintefass (changemedia.org). Thanks to Nathan for the great ideas. Send any suggestions for improvements to ray@camdenfamily.com.